Optimal. Leaf size=102 \[ -3 b^2 c \text{PolyLog}\left (2,\frac{2}{c x+1}-1\right ) \left (a+b \tanh ^{-1}(c x)\right )-\frac{3}{2} b^3 c \text{PolyLog}\left (3,\frac{2}{c x+1}-1\right )+c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+3 b c \log \left (2-\frac{2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.268323, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {5916, 5988, 5932, 5948, 6056, 6610} \[ -3 b^2 c \text{PolyLog}\left (2,\frac{2}{c x+1}-1\right ) \left (a+b \tanh ^{-1}(c x)\right )-\frac{3}{2} b^3 c \text{PolyLog}\left (3,\frac{2}{c x+1}-1\right )+c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+3 b c \log \left (2-\frac{2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 5988
Rule 5932
Rule 5948
Rule 6056
Rule 6610
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x^2} \, dx &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+(3 b c) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{x \left (1-c^2 x^2\right )} \, dx\\ &=c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+(3 b c) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{x (1+c x)} \, dx\\ &=c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (2-\frac{2}{1+c x}\right )-\left (6 b^2 c^2\right ) \int \frac{\left (a+b \tanh ^{-1}(c x)\right ) \log \left (2-\frac{2}{1+c x}\right )}{1-c^2 x^2} \, dx\\ &=c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (2-\frac{2}{1+c x}\right )-3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text{Li}_2\left (-1+\frac{2}{1+c x}\right )+\left (3 b^3 c^2\right ) \int \frac{\text{Li}_2\left (-1+\frac{2}{1+c x}\right )}{1-c^2 x^2} \, dx\\ &=c \left (a+b \tanh ^{-1}(c x)\right )^3-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{x}+3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (2-\frac{2}{1+c x}\right )-3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text{Li}_2\left (-1+\frac{2}{1+c x}\right )-\frac{3}{2} b^3 c \text{Li}_3\left (-1+\frac{2}{1+c x}\right )\\ \end{align*}
Mathematica [C] time = 0.320924, size = 196, normalized size = 1.92 \[ 3 a b^2 c \left (\tanh ^{-1}(c x) \left (-\frac{\tanh ^{-1}(c x)}{c x}+\tanh ^{-1}(c x)+2 \log \left (1-e^{-2 \tanh ^{-1}(c x)}\right )\right )-\text{PolyLog}\left (2,e^{-2 \tanh ^{-1}(c x)}\right )\right )+b^3 c \left (3 \tanh ^{-1}(c x) \text{PolyLog}\left (2,e^{2 \tanh ^{-1}(c x)}\right )-\frac{3}{2} \text{PolyLog}\left (3,e^{2 \tanh ^{-1}(c x)}\right )-\frac{\tanh ^{-1}(c x)^3}{c x}-\tanh ^{-1}(c x)^3+3 \tanh ^{-1}(c x)^2 \log \left (1-e^{2 \tanh ^{-1}(c x)}\right )+\frac{i \pi ^3}{8}\right )-\frac{3}{2} a^2 b c \log \left (1-c^2 x^2\right )+3 a^2 b c \log (x)-\frac{3 a^2 b \tanh ^{-1}(c x)}{x}-\frac{a^3}{x} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.183, size = 1583, normalized size = 15.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{3}{2} \,{\left (c{\left (\log \left (c^{2} x^{2} - 1\right ) - \log \left (x^{2}\right )\right )} + \frac{2 \, \operatorname{artanh}\left (c x\right )}{x}\right )} a^{2} b - \frac{a^{3}}{x} - \frac{{\left (b^{3} c x - b^{3}\right )} \log \left (-c x + 1\right )^{3} + 3 \,{\left (2 \, a b^{2} +{\left (b^{3} c x + b^{3}\right )} \log \left (c x + 1\right )\right )} \log \left (-c x + 1\right )^{2}}{8 \, x} - \int -\frac{{\left (b^{3} c x - b^{3}\right )} \log \left (c x + 1\right )^{3} + 6 \,{\left (a b^{2} c x - a b^{2}\right )} \log \left (c x + 1\right )^{2} + 3 \,{\left (4 \, a b^{2} c x -{\left (b^{3} c x - b^{3}\right )} \log \left (c x + 1\right )^{2} + 2 \,{\left (b^{3} c^{2} x^{2} + 2 \, a b^{2} -{\left (2 \, a b^{2} c - b^{3} c\right )} x\right )} \log \left (c x + 1\right )\right )} \log \left (-c x + 1\right )}{8 \,{\left (c x^{3} - x^{2}\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{3} \operatorname{artanh}\left (c x\right )^{3} + 3 \, a b^{2} \operatorname{artanh}\left (c x\right )^{2} + 3 \, a^{2} b \operatorname{artanh}\left (c x\right ) + a^{3}}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atanh}{\left (c x \right )}\right )^{3}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{artanh}\left (c x\right ) + a\right )}^{3}}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]